<?php

require_once("inc.member.php");



$this_title="$vars[member_title] &raquo; ".__("Summary");

$page_title=__("Summary");

$content_title=__("Summary");



require_once("inc.desk_select.php");

if($r_user['ref']>0){
	$sponsor_code = @mysql_result(mysql_query("select username from $db->users where id=".$r_user['ref']), 0);
}else{
	$sponsor_code = "-";
}


$r_status_d=array("normal"=>__("Normal"),"unverified"=>__("Unverified"),"suspended"=>__("Suspended"),"terminated"=>__("Terminated"));

$acc=
"                
		        <div class='widget'>
			        <div class='widget-header'>
			            <h3><span id='lblSalesInformation'>".__("Account Information")."</span></h3>
			        </div>
			        <div class='widget-content'>
			            <table class='table table-striped table-highlight'>

 <tr>

  <td width='30%'>".__("Username").__(":")."</td>

  <td>$r_user[username] (Sponsor Username: ".$sponsor_code.")</td>

 </tr>

 <tr>

  <td>".__("Name").__(":")."</td>

  <td>$r_user[name]</td>

 </tr>

 <tr>

  <td>".__("Status").__(":")."</td>

  <td>".__($r_status_d[$r_user["status"]])."</td>

 </tr>

 <tr>

  <td>".__("Rank").__(":")."</td>

  <td>".($r_user["rank_a"]? __($vars['rank_index_a_d'][$r_user["rank_a"]]) : __("None"))."</td>

 </tr>

 <tr>

  <td>".__("Profit Sharing Point").__(":")."</td>

  <td>".number_format($r_user["rank_a"], 0)."</td>

 </tr>

 <tr>

  <td>".__("Machine Maintenance Fees Due Date").__(":")."</td>

  <td>".date($vars["date_format"], strtotime($r_user['flash_date']))."</td>

 </tr>

 <tr>

  <td>".__("Machine Maintenance Fees").__(":")."</td>

  <td>".$r_user['maintenance_lot']."</td>

 </tr>

 <tr>

  <td>".__("Created Date").__(":")."</td>

  <td>".date($vars["date_format"], strtotime($r_user["activated_date"]))."</td>

 </tr>

 <tr>

  <td>".__("Last Login").__(":")."</td>

  <td>".($r_user["last_login2"]=="0000-00-00 00:00:00"? __("Never") : date($vars["date_format"], strtotime($r_user["last_login2"])))."</td>

 </tr>
                        </table>
			        </div>
                </div>	
";




$content=$inc_wallet_select.$acc;

print format_member_page($content, $this_title, $content_title, $css . $inc_jvscript);

?>